using System.Collections.ObjectModel;
using System.Windows.Input;
using System.Windows.Media;

namespace Clancy.Ui.ViewModels
{
    public abstract class RibbonElementProvidingViewModelBase : ViewModelBase
    {
        private readonly ObservableCollection<RibbonElement> m_RibbonElements = new ObservableCollection<RibbonElement>();

        public ObservableCollection<RibbonElement> RibbonElements
        {
            get { return m_RibbonElements; }
        }

        public void InsertRibbonButton(string tab, string group, string label, ImageSource image, ICommand command)
        {
            m_RibbonElements.Add(new RibbonElementButton { Label = label, Tab = tab, Group = group, Image = image, Command = command });
        }
    }
}